/* ===================

AX2E (AXESCON XACML 2.0 Engine) is the Java authorization engine, which implements OASIS XACML 2.0 standard.
Copyright (C) 2007 AXESCON LLC

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA


Contact: AXESCON LLC - info{at}axescon.com

 =================== */
/*
 * XML Type:  IdReference
 * Namespace: urn:oasis:names:tc:xacml:2.0:policy:schema:os
 * Java type: IdReference
 *
 * Automatically generated - do not modify.
 */
package axescon.xacml.model.policy;


/**
 * @author argyn
 * Responsibilities: represents XACML Policy schema element IdReference
 * (@urn:oasis:names:tc:xacml:2.0:policy:schema:os).
 * <p/>
 */
public interface IdReference extends PolicyProxy {

    /**
     * True if has "Version" attribute
     */
    boolean isSetVersion();

    /**
     * Sets the "Version" attribute
     */
    void setVersion(java.lang.String version);

    /**
     * Unsets the "Version" attribute
     */
    void unsetVersion();

    /**
     * Gets the "EarliestVersion" attribute
     */
    java.lang.String getEarliestVersion();

    /**
     * True if has "EarliestVersion" attribute
     */
    boolean isSetEarliestVersion();

    /**
     * Sets the "EarliestVersion" attribute
     */
    void setEarliestVersion(java.lang.String earliestVersion);

    /**
     * Unsets the "EarliestVersion" attribute
     */
    void unsetEarliestVersion();

    /**
     * Gets the "LatestVersion" attribute
     */
    java.lang.String getLatestVersion();

    /**
     * True if has "LatestVersion" attribute
     */
    boolean isSetLatestVersion();

    /**
     * Sets the "LatestVersion" attribute
     */
    void setLatestVersion(java.lang.String latestVersion);

    /**
     * Unsets the "LatestVersion" attribute
     */
    void unsetLatestVersion();

    /**
     * indicates if this is reference to policy set
     * @return true, if reference to policy set
     */
    boolean isPolicySet();

    /**
     * matches this reference with policy id
     * @param policyId given policy id to match with this reference
     * @return true, if matches policy id
     */
    boolean match(String policyId);

}
